﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace kairiseiMAParser
{
    public class Enemy_ai_order
    {
        public string ID;//#ID
        public string PartCondition;
        public string SelfHPMaximum;
        public string SelfHPInfimum;
        public string BodyHPMaximum;
        public string BodyHPInfimum;
        public int[] Turn = new int[10];
        public int LoopTurn;
        public int[] LoopTurnCondition = new int[10];
        //トリガー条件
        public string TriggerCondition;
        public string Parameter1;
        public string Parameter2;
        public string Parameter3;

        public Enemy_ai_order(string[] str)
        {
            Reader reader = new Reader(str);
            ID = reader.NextString();
            PartCondition = reader.NextString();
            SelfHPMaximum = reader.NextString();
            SelfHPInfimum = reader.NextString();
            BodyHPMaximum = reader.NextString();
            BodyHPInfimum = reader.NextString();
            for (int i = 0; i < 10; i++)
            {
                Turn[i] = reader.NextInt32();
            }
            LoopTurn = reader.NextInt32();
            for (int i = 0; i < 10; i++)
            {
                LoopTurnCondition[i] = reader.NextInt32();
            }
            TriggerCondition = reader.NextString();
            Parameter1 = reader.NextString();
            Parameter2 = reader.NextString();
            Parameter3 = reader.NextString();
        }
    }
}
